package com.simtop.service.impl;

import com.simtop.pojo.*;
import com.simtop.mapper.*;

import com.simtop.service.CaptchaControllerServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Classname CaptchaControllerServerImpl
 * @Description TODO
 * @Date 2021/12/28 15:02
 * @Created by lzb
 */
@Service
public class CaptchaControllerServerImpl implements CaptchaControllerServer {

    @Autowired
    private SqUserMapper sqUserMapper;

    @Autowired
    private SqLabelMapper sqLabelMapper;

    @Autowired
    private SqUseralonelabelMapper sqUseralonelabelMapper;

    @Autowired
    private SqUsergroupMapper sqUsergroupMapper;

    @Autowired
    private  SqUsergroupcoreBusinessMapper sqUsergroupcoreBusinessMapper;

    @Autowired
    private SqHowlabelsaredefinedMapper sqHowlabelsaredefinedMapper;

    @Autowired
    private  SquserbehaviortableMapper squserbehaviortableMapper;


    @Override
    public List<SqUser> gitCaptchaUser() {
        return sqUserMapper.gitCaptchaUser();
    }

    @Override
    public List<SqLabel> girFirstLabel() {
        return sqLabelMapper.girFirstLabel();
    }

    @Override
    public boolean createLabel(SqLabel sqLabel) {
        return sqLabelMapper.createLabel(sqLabel);
    }

    @Override
    public boolean createLabelsq(SqUsergroup sqUsergroup) {
        return sqUsergroupMapper.createLabelsq(sqUsergroup);
    }

    @Override
    public int gitCountMembergrade(int membergrade) {
        return sqUserMapper.gitCountMembergrade(membergrade);
    }

    @Override
    public int gitCountChannel(String channel) {
        return sqUserMapper.gitCountChannel(channel);
    }

    @Override
    public int getCountConsumption(int con) {
        return sqUserMapper.getCountConsumption(con);
    }

    @Override
    public List<SqLabel> girChiledLabel(Integer chedaid) {
        return sqLabelMapper.girChiledLabel(chedaid);
    }

    @Override
    public List<SqUser> singleUserPortraitName() {
        return sqUserMapper.singleUserPortraitName();
    }

    @Override
    public SqUser singleUserPortrait(String userName) {
        return sqUserMapper.singleUserPortrait(userName);
    }

    @Override
    public boolean createsqUseralonelabel(Integer useralonelabelIds , String retainedInformation){
        return  sqUseralonelabelMapper.createsqUseralonelabel(useralonelabelIds,retainedInformation);
    }

    @Override
    public List<SqUseralonelabel> getSingleUserPortraitLabel() {
        return sqUseralonelabelMapper.getSingleUserPortraitLabel();
    }

    @Override
    public SqUser showUserPortraits(Integer useralonelabelIds) {
        return sqUserMapper.showUserPortraits(useralonelabelIds);
    }

    @Override
    public Boolean savedGroupImage(String groupUserProfileName , String usergroupIoneuserid) {
        return sqUsergroupMapper.savedGroupImage(groupUserProfileName,usergroupIoneuserid);
    }

    @Override
    public List<SqUser> lookupGroupUserTable(Date joindatestart, Date joindateend, Date registerdatestart, Date registerdateend, int memcount, int concount, String channel, String area, String preference, String education, String profession) {
        return sqUserMapper.lookupGroupUserTable(joindatestart,joindateend,registerdatestart,registerdateend,memcount,concount,channel,area,preference,education,profession);
    }

    @Override
    public List<SqUsergroup> showAllGroupPortraits() {
        return sqUsergroupMapper.showAllGroupPortraits();
    }

    @Override
    public SqUser extractASingleCommunityUserBasedOnId(String s) {
        return sqUserMapper.extractASingleCommunityUserBasedOnId(s);
    }

    @Override
    public SqUsergroup getNewUsergroupid() {
        return  sqUsergroupMapper.getNewUsergroupid();
    }

    @Override
    public boolean addToCoreDataTable(int usergroupcorebusinessids, int agesumlasts, int incomessslast, String usergroupcorebusinessuserid, String ages, String joindates, String registerdates, String constellations, String incomes, String educations, String preferences, String professions, String areas, String channels, String names, String sexs, int sexman, int sexwoman, int consumptionlow, int consumptionmiddle, int consumptionhigh, int consumptionadvanced, int membergradeone, int membergradetwo, int membergradethree, int membergradefor, int membergradefive, int toktok, int wechat, int redbook, int weibo, int baidu, int memberis, int membernot,int dazhuan,int benke,int yanjiusheng) {
        return sqUsergroupcoreBusinessMapper.addToCoreDataTable(
                usergroupcorebusinessids,agesumlasts,incomessslast,usergroupcorebusinessuserid,ages,joindates,registerdates,constellations,incomes,educations
                ,preferences,professions,areas,channels,names,sexs,sexman,sexwoman,consumptionlow,consumptionmiddle,consumptionhigh,consumptionadvanced
                ,membergradeone,membergradetwo,membergradethree,membergradefor,membergradefive
                ,toktok,wechat,redbook,weibo,baidu
                ,memberis,membernot,dazhuan,benke,yanjiusheng
        );
    }

    @Override
    public SqUsergroupcoreBusiness obtainGroupUserInformationForAnalysis(Integer usergroupId) {
        return sqUsergroupcoreBusinessMapper.obtainGroupUserInformationForAnalysis(usergroupId);
    }

    @Override
    public List<SqHowlabelsaredefined> howLabelsAreDefined() {
        return sqHowlabelsaredefinedMapper.howLabelsAreDefined();
    }

    @Override
    public SqUser clickOnTheTagAnalysisPage(String sex, int age, String preference, int membergrade, String preference1) {
        return null;
    }

    @Override
    public List<SqUser> getCommunityUniqueId(String sex, int age, String preference, int membergrade , int consumption) {
        return sqUserMapper.getCommunityUniqueId(sex,age,preference,membergrade,consumption);
    }

    @Override
    public int getTheNumberOfBoys(List<Long> sqid) {
        return sqUserMapper.getTheNumberOfBoys(sqid);
    }
    @Override
    public int getTheNumberOfGirl(List<Long> sqid){
        return  sqUserMapper.getTheNumberOfGirl(sqid);

    }
    @Override
    public SqUser viewByUserId(Long userId){
        return  sqUserMapper.viewByUserId(userId);

    }

    @Override
    public List<Squserbehaviortable> getActionId(int userbehaviorNewlyadded, int userbehaviorSignin, int userbehaviorSpeak, int userbehaviorDiscuss, int userbehaviorTopicinitiation, int userbehaviorShare) {
        return squserbehaviortableMapper.getActionId(userbehaviorNewlyadded,userbehaviorSignin,userbehaviorSpeak,userbehaviorDiscuss,userbehaviorTopicinitiation,userbehaviorShare);
    }

    @Override
    public List<Squserbehaviortable> viewuserbehavioranalysis() {
        return squserbehaviortableMapper.viewuserbehavioranalysis();
    }

    @Override
    public List<SqUser> analysisByID(List<Long> listids) {
        return sqUserMapper.analysisByID(listids);
    }

    @Override
    public AgedistributionVo getageDistribution(List<Long> listids) {
        return sqUserMapper.getageDistribution(listids);
    }

    @Override
    public ConsumptionDistributionVo consumptionDistribution(ArrayList<Long> listids) {
        return sqUserMapper.consumptionDistribution(listids);
    }

    @Override
    public int getAllcount() {
        return sqUserMapper.getAllcount();
    }

    @Override
    public boolean savefilter(String data) {
        return sqLabelMapper.savefilter(data);
    }

    @Override
    public List<FirstLabelVo> gitFirstLabelVo() {
        return sqLabelMapper.gitFirstLabelVo();
    }

    @Override
    public List<CheadVo> girChiledLabelOne() {
        return null;
    }

    @Override
    public List<CheadVo> gitCheadVo(List<Integer> parentid) {
        return sqLabelMapper.gitCheadVo(parentid);
    }

    @Override
    public SqLabel clickOnTheTagAnalysisPageOne(String labelname) {
        return sqLabelMapper.clickOnTheTagAnalysisPageOne(labelname);
    }

    @Override
    public SqLabel clickOnTheTagAnalysisPageTwo(String labelname) {
        return sqLabelMapper.clickOnTheTagAnalysisPageTwo(labelname);
    }

    @Override
    public List<Squserbehaviortable> gitnewlyadded(String starttimes, String endtimes, int newlyaddedid) {
        return squserbehaviortableMapper.gitnewlyadded(starttimes,endtimes,newlyaddedid);
    }

    @Override
    public List<Squserbehaviortable> gitspeak(String starttimes, String endtimes, Integer speakid) {
        return squserbehaviortableMapper.gitspeak(starttimes,endtimes,speakid);
    }

    @Override
    public List<Squserbehaviortable> gitdiscuss(String starttimes, String endtimes, Integer discussid) {
        return squserbehaviortableMapper.gitdiscuss(starttimes,endtimes,discussid);
    }

    @Override
    public List<Squserbehaviortable> gittopicinitiation(String starttimes, String endtimes, Integer topicinitiationid) {
        return squserbehaviortableMapper.gittopicinitiation(starttimes,endtimes,topicinitiationid);
    }

    @Override
    public List<Squserbehaviortable> gitshare(String starttimes, String endtimes, Integer shareid) {
        return squserbehaviortableMapper.gitshare(starttimes,endtimes,shareid);
    }

    @Override
    public List<Squserbehaviortable> gitsignin(String starttimes, String endtimes, Integer signinid) {
        return squserbehaviortableMapper.gitsignin(starttimes,endtimes,signinid);
    }

    @Override
    public SqUsergroup displayuserportrait(String usergroupname) {
        return sqUsergroupMapper.displayuserportrait(usergroupname);
    }

    @Override
    public List<CheadVo> gitcheadname(String labname) {
        return sqLabelMapper.gitcheadname(labname);
    }

    @Override
    public SqLabel getparentId(int parentId) {
        return sqLabelMapper.getparentId(parentId);
    }

    @Override
    public ConsumptVo getsr(ArrayList<Long> listWithoutDuplicates) {
        return sqUserMapper.getsr(listWithoutDuplicates);
    }

    @Override
    public List<SqUser> getAllId() {
        return sqUserMapper.getAllId();
    }

    @Override
    public LocalDistributionVo localDistribution(ArrayList<Long> listWithoutDuplicates) {
        return sqUserMapper.localDistribution(listWithoutDuplicates);
    }


}
